home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
The Programmer Disk
/
The Programmer Disk (Microforum).iso
/
xpro
/
basic1
/
pro22
/
age-cal.bas
next >
Wrap
BASIC Source File
|
1988-09-26
|
536b
|
25 lines
20 CLS
30 PRINT "FUTURE AGE CALCULATOR"
40 FOR X = 1 TO 1000
50 NEXT X
60 CLS
70 PRINT "TYPE THE CORRECT ANSWER;"
80 PRINT "THEN PRESS THE ENTER KEY."
90 PRINT
100 PRINT "WHAT YEAR IS IT";
110 INPUT Y
120 PRINT
130 PRINT "HOW OLD ARE YOU";
140 INPUT A
150 PRINT
160 PRINT "FOR WHAT FUTURE YEAR DO"
170 PRINT "YOU WANT TO SEE YOUR AGE";
180 INPUT F
190 CLS
200 PRINT "ON THIS DAY IN ";F
210 PRINT "YOU WILL BE ";(F-Y)+A;"."
220 PRINT
230 PRINT "PLAY AGAIN (Y or N)"
250 INPUT P$
255 IF P$ = "Y" THEN 20 ELSE END